<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <%@include file="/WEB-INF/jspf/meta/meta.jspf" %>
    <title>Title</title>
    <%@include file="/WEB-INF/jspf/adminPage.jspf" %>
    <script type="text/javascript" src="<%=request.getContextPath()%>/static/nafe/crud.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/static/nafe/jquery.serializejson.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath()%>/static/nafe/date.js"></script>
    <script>
        var text='缴纳费用';
        var name = "nafe";
        var columns = [ [
            ﻿{field : 'nafeId',title: '编号',width: '100px',align : 'center',sortable:true,checkbox:true},
            ﻿{field : 'nafeSum',title: '纳费费用',width: '100px',align : 'center',sortable:true,formatter:function(value,row,index){
                    return  formatPrice(value);
            }},
            ﻿{field : 'nafeGrade',title: '报读专业',width: '100px',align : 'center'},
            ﻿{field : 'studentId',title: '学生编号',width: '100px',align : 'center'},
            {field : 'xxxx',title : '操作',width : '150px',align : 'center',
                formatter : function(value, row, index) {
                return "<a href='javascript:void(0)' style='text-decoration: none;' onclick='edit("+row.nafeId+")'>修改</a> | " +
                    "<a href='javascript:void(0)' style='text-decoration: none;' onclick='del("+row.nafeId+")'>删除</a>"
                }
            }
        ] ];

    </script>
    <style>
        a{
            color: grey;
        }
    </style>
</head>
<body>
<form id="searchForm" method="post" style="margin-bottom: 10px">
    <input class="easyui-textbox" data-options="label: '报读专业:'" style="width:200px" name="nafeGrade">
    <input class="easyui-textbox" data-options="label: '学生编号:'" style="width:200px" name="studentId">

    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'" style="width:80px" id="btnSearch">查询</a>
</form>

<table id="grid"></table>
    <!-- 添加窗口同时也是编辑窗口 -->
    <div id="editDlg">
        <div class="easyui-panel" title="" style="padding:20px;">
            <form id="editForm" method="post" style="margin-top: 10px">
                <div style="margin-bottom:10px">
                    <input class="easyui-numberbox" id="nafeSum" name="nafeSum" style="width:100%" data-options="precision:2,label:'纳费费用:',required:true">
                </div>
                ﻿<div style="margin-bottom:10px">
                    <input class="easyui-textbox" name="nafeGrade" style="width:100%" data-options="label:'所读课程:',required:true">
                </div>
                ﻿<div style="margin-bottom:10px">
                    <input class="easyui-textbox"  name="studentId" style="width:100%" data-options="label:'学生编号:',required:true">
                </div>
                ﻿<input type="hidden" name="nafeId">

                <div style="text-align:center">
                    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()" style="width:80px">保存</a>
                </div>
            </form>
        </div>
    </div>
</body>
</html>